<?php
session_start();
$usuario=$_SESSION["usuario"];
$errores=$_SESSION["errores"];
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">

<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
			<title>Asociacion Cultural</title>
			 <link type="text/css" rel="stylesheet" href="css/index.css">
			<script src="js/validarCabecera.js" type="text/javascript"></script>
	</head>
	<body>
	<div id="errorCab"></div>
	<div id="logo">   </div>
	<div id="index">	
	<?php 
		if(isset($errores) && is_array($errores)){
				echo "<div id='errores' class='error'>";
				foreach($errores as $error){
					echo "$error<br/>";
				}
				echo "</div>";
			}
			include_once 'Cabecera.php';

			include_once 'Menu.php';

			include_once 'creaNoticias.php';
			
			include_once 'Pie.php';
			
			unset($_SESSION['errores']);
		?>
	</div>
	</body>
</html>

